"To get the bonus miles" means to earn additional airline or reward points that can be used to get free flights or other perks when traveling.